package com.atguigu.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import javax.sql.DataSource;

@SpringBootApplication
public class DemoMainType {

    public static void main(String[] args) {
        ConfigurableApplicationContext ioc = SpringApplication.run(DemoMainType.class, args);
        DataSource dataSource = ioc.getBean(DataSource.class);
        System.out.println("dataSource = " + dataSource);
    }

}
